package com.hyb.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hyb.entity.Permission;
import com.hyb.page.VoQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * <p>
 *  权限Mapper 接口
 * </p>
 *
 * @author hyb
 * @since 2021-12-29
 */
@Mapper
public interface PermissionMapper extends BaseMapper<Permission> {

    Set<String> getPermissionServiceByStaffEmail(String staffEmail);

    List<String> selectFatherPermissionCodeByStaffEmail(String staffEmail);

    List<Permission> selectFatherPermissionByStaffEmail(String staffEmail);

    List<Permission> selectSubPermissionByFather(@Param("voQuery") VoQuery voQuery);
}
